import React from 'react'

import { RouteComponentProps } from 'react-router-dom'
import HomeStore from '../../stores/HomeStory'
import { inject, observer } from 'mobx-react'
import CRUDPage from '../../components/crud/CRUDPage'

import '../../config/dark-theme.less'
interface BookManagesInterface extends RouteComponentProps {
  HomeStore: HomeStore
}

interface Book {
  id: number
  name: string
  type: number
  author: string
  price: number
  endTime: number
  key: number
}

const BookManages: React.FC<BookManagesInterface> = ({}) => {
  return (
    <CRUDPage
      addUrl='/goods/add'
      queryUrl='/goods/list'
      deleteUrl='/goods/delete'
      updateUrl='/goods/update'
    />
  )
}

export default inject('HomeStore')(observer(BookManages))
